package com.acxiom.bsh.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.acxiom.bsh.service.ApiTokenTask;

@Component
public class InitTask implements CommandLineRunner{

	@Autowired
	ApiTokenTask apiTokenTask;
	
	@Override
	public void run(String... args) throws Exception {
		initApiToken();
	}
	
	private void initApiToken() {
		apiTokenTask.init();
	}

}
